//包装表单相关
import {InfoUtils} from "@/util/uniUtils";

export class FormUtils{
    static async validate(refs){
        try {
            let flag = await refs.validate()
            // console.log(flag)
            return flag
        } catch (e) {
            let [into] =e
            let {message} = into
            InfoUtils.showInfo(message)
            console.log("表单校验异常",message)
            return false
        }
    }
}
